STEP 8: We need to make different things happen depending on what the ball hits!
- Add Collision with Shape to the bottom of the program.
- Find the event handler sprite.event_collision(collision)¬ and change sprite to ball.
INSIDE the collision event, sprite refers to the sprite assigned in the event handler. In this program, that's ball!
INSIDE the collision event hit_sprite refers to anything the sprite collides with. In this program, paddle or brick.
To navigate the page using the TAB key, first press ESC to exit the code editor.